package com.lwz.mediator.computer;

import com.lwz.mediator.Colleague;
import com.lwz.mediator.Mediator;

public class CPU extends Colleague {
	
	private String soundData ="";
	
	private String videoData = "";

	public String getSoundData() {
		return soundData;
	}

	public String getVideoData() {
		return videoData;
	}

	public CPU(Mediator mediator) {
		super(mediator);
	}

	@Override
	public void doSomeThing() {
		
	}
	
    public void splitData(String data) {
    	       String[] ss = data.split(",");
       this.soundData = ss[0];
       this.videoData = ss[1];
                 //通知主板，CPU工作完成
       this.getMediator().change(this);
	}

}
